Optimal. Leaf size=453 \[ \frac {\left (48 a^3 B+66 a b^2 B+8 b^3 (3 A+2 C)+a^2 b (96 A+59 C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{24 d \sqrt {a+b \sec (c+d x)}}+\frac {\left (30 a^2 b B+8 b^3 B+5 a^3 C+20 a b^2 (2 A+C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{8 d \sqrt {a+b \sec (c+d x)}}-\frac {\left (54 a b B-a^2 (48 A-33 C)+8 b^2 (3 A+2 C)\right ) E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{24 d \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}+\frac {\left (24 A b^2+42 a b B+15 a^2 C+16 b^2 C\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{24 d}+\frac {(6 b B+5 a C) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{12 d}+\frac {C \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.12, antiderivative size = 453, normalized size of antiderivative = 1.00, number of steps
used = 14, number of rules used = 12, integrand size = 45, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {4181, 4193,
3944, 2886, 2884, 4120, 3941, 2734, 2732, 3943, 2742, 2740} \begin {gather*} \frac {\sin (c+d x) \sqrt {\sec (c+d x)} \left (15 a^2 C+42 a b B+24 A b^2+16 b^2 C\right ) \sqrt {a+b \sec (c+d x)}}{24 d}-\frac {\left (-\left (a^2 (48 A-33 C)\right )+54 a b B+8 b^2 (3 A+2 C)\right ) \sqrt {a+b \sec (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{24 d \sqrt {\sec (c+d x)} \sqrt {\frac {a \cos (c+d x)+b}{a+b}}}+\frac {\sqrt {\sec (c+d x)} \left (48 a^3 B+a^2 b (96 A+59 C)+66 a b^2 B+8 b^3 (3 A+2 C)\right ) \sqrt {\frac {a \cos (c+d x)+b}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{24 d \sqrt {a+b \sec (c+d x)}}+\frac {\sqrt {\sec (c+d x)} \left (5 a^3 C+30 a^2 b B+20 a b^2 (2 A+C)+8 b^3 B\right ) \sqrt {\frac {a \cos (c+d x)+b}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{8 d \sqrt {a+b \sec (c+d x)}}+\frac {(5 a C+6 b B) \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{3/2}}{12 d}+\frac {C \sin (c+d x) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{5/2}}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2884
Rule 2886
Rule 3941
Rule 3943
Rule 3944
Rule 4120
Rule 4181
Rule 4193
Rubi steps
\begin {align*} \int \frac {(a+b \sec (c+d x))^{5/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sqrt {\sec (c+d x)}} \, dx &=\frac {C \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{3 d}+\frac {1}{3} \int \frac {(a+b \sec (c+d x))^{3/2} \left (\frac {1}{2} a (6 A-C)+(3 A b+3 a B+2 b C) \sec (c+d x)+\frac {1}{2} (6 b B+5 a C) \sec ^2(c+d x)\right )}{\sqrt {\sec (c+d x)}} \, dx\\ &=\frac {(6 b B+5 a C) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{12 d}+\frac {C \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{3 d}+\frac {1}{6} \int \frac {\sqrt {a+b \sec (c+d x)} \left (\frac {3}{4} a (8 a A-2 b B-3 a C)+\frac {1}{2} \left (12 a^2 B+6 b^2 B+a b (24 A+11 C)\right ) \sec (c+d x)+\frac {1}{4} \left (24 A b^2+42 a b B+15 a^2 C+16 b^2 C\right ) \sec ^2(c+d x)\right )}{\sqrt {\sec (c+d x)}} \, dx\\ &=\frac {\left (24 A b^2+42 a b B+15 a^2 C+16 b^2 C\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{24 d}+\frac {(6 b B+5 a C) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{12 d}+\frac {C \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{3 d}+\frac {1}{6} \int \frac {-\frac {1}{8} a \left (54 a b B-a^2 (48 A-33 C)+8 b^2 (3 A+2 C)\right )+\frac {1}{4} a \left (24 a^2 B+6 b^2 B+a b (72 A+13 C)\right ) \sec (c+d x)+\frac {3}{8} \left (30 a^2 b B+8 b^3 B+5 a^3 C+20 a b^2 (2 A+C)\right ) \sec ^2(c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)}} \, dx\\ &=\frac {\left (24 A b^2+42 a b B+15 a^2 C+16 b^2 C\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{24 d}+\frac {(6 b B+5 a C) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{12 d}+\frac {C \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{3 d}+\frac {1}{6} \int \frac {-\frac {1}{8} a \left (54 a b B-a^2 (48 A-33 C)+8 b^2 (3 A+2 C)\right )+\frac {1}{4} a \left (24 a^2 B+6 b^2 B+a b (72 A+13 C)\right ) \sec (c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)}} \, dx+\frac {1}{16} \left (30 a^2 b B+8 b^3 B+5 a^3 C+20 a b^2 (2 A+C)\right ) \int \frac {\sec ^{\frac {3}{2}}(c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx\\ &=\frac {\left (24 A b^2+42 a b B+15 a^2 C+16 b^2 C\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{24 d}+\frac {(6 b B+5 a C) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{12 d}+\frac {C \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{3 d}+\frac {1}{48} \left (-54 a b B+a^2 (48 A-33 C)-8 b^2 (3 A+2 C)\right ) \int \frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx+\frac {1}{48} \left (48 a^3 B+66 a b^2 B+8 b^3 (3 A+2 C)+a^2 b (96 A+59 C)\right ) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+b \sec (c+d x)}} \, dx+\frac {\left (\left (30 a^2 b B+8 b^3 B+5 a^3 C+20 a b^2 (2 A+C)\right ) \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sec (c+d x)}{\sqrt {b+a \cos (c+d x)}} \, dx}{16 \sqrt {a+b \sec (c+d x)}}\\ &=\frac {\left (24 A b^2+42 a b B+15 a^2 C+16 b^2 C\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{24 d}+\frac {(6 b B+5 a C) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{12 d}+\frac {C \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{3 d}+\frac {\left (\left (48 a^3 B+66 a b^2 B+8 b^3 (3 A+2 C)+a^2 b (96 A+59 C)\right ) \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {b+a \cos (c+d x)}} \, dx}{48 \sqrt {a+b \sec (c+d x)}}+\frac {\left (\left (30 a^2 b B+8 b^3 B+5 a^3 C+20 a b^2 (2 A+C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}\right ) \int \frac {\sec (c+d x)}{\sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}}} \, dx}{16 \sqrt {a+b \sec (c+d x)}}+\frac {\left (\left (-54 a b B+a^2 (48 A-33 C)-8 b^2 (3 A+2 C)\right ) \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {b+a \cos (c+d x)} \, dx}{48 \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}}\\ &=\frac {\left (30 a^2 b B+8 b^3 B+5 a^3 C+20 a b^2 (2 A+C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{8 d \sqrt {a+b \sec (c+d x)}}+\frac {\left (24 A b^2+42 a b B+15 a^2 C+16 b^2 C\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{24 d}+\frac {(6 b B+5 a C) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{12 d}+\frac {C \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{3 d}+\frac {\left (\left (48 a^3 B+66 a b^2 B+8 b^3 (3 A+2 C)+a^2 b (96 A+59 C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}}} \, dx}{48 \sqrt {a+b \sec (c+d x)}}+\frac {\left (\left (-54 a b B+a^2 (48 A-33 C)-8 b^2 (3 A+2 C)\right ) \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}} \, dx}{48 \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}\\ &=\frac {\left (48 a^3 B+66 a b^2 B+8 b^3 (3 A+2 C)+a^2 b (96 A+59 C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{24 d \sqrt {a+b \sec (c+d x)}}+\frac {\left (30 a^2 b B+8 b^3 B+5 a^3 C+20 a b^2 (2 A+C)\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{8 d \sqrt {a+b \sec (c+d x)}}-\frac {\left (54 a b B-a^2 (48 A-33 C)+8 b^2 (3 A+2 C)\right ) E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{24 d \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}+\frac {\left (24 A b^2+42 a b B+15 a^2 C+16 b^2 C\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{24 d}+\frac {(6 b B+5 a C) \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{3/2} \sin (c+d x)}{12 d}+\frac {C \sqrt {\sec (c+d x)} (a+b \sec (c+d x))^{5/2} \sin (c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 17.17, size = 817, normalized size = 1.80 \begin {gather*} \frac {(a+b \sec (c+d x))^{5/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (\frac {2 \left (288 a^2 A b+96 a^3 B+24 a b^2 B+52 a^2 b C\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{\sqrt {b+a \cos (c+d x)}}+\frac {2 \left (48 a^3 A+216 a A b^2+126 a^2 b B+48 b^3 B-3 a^3 C+104 a b^2 C\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{\sqrt {b+a \cos (c+d x)}}+\frac {2 i \left (48 a^3 A-24 a A b^2-54 a^2 b B-33 a^3 C-16 a b^2 C\right ) \sqrt {\frac {a-a \cos (c+d x)}{a+b}} \sqrt {\frac {a+a \cos (c+d x)}{a-b}} \cos (2 (c+d x)) \left (-2 b (a+b) E\left (i \sinh ^{-1}\left (\sqrt {\frac {1}{a-b}} \sqrt {b+a \cos (c+d x)}\right )|\frac {-a+b}{a+b}\right )+a \left (2 b F\left (i \sinh ^{-1}\left (\sqrt {\frac {1}{a-b}} \sqrt {b+a \cos (c+d x)}\right )|\frac {-a+b}{a+b}\right )+a \Pi \left (1-\frac {a}{b};i \sinh ^{-1}\left (\sqrt {\frac {1}{a-b}} \sqrt {b+a \cos (c+d x)}\right )|\frac {-a+b}{a+b}\right )\right )\right ) \sin (c+d x)}{\sqrt {\frac {1}{a-b}} b \sqrt {1-\cos ^2(c+d x)} \sqrt {\frac {a^2-a^2 \cos ^2(c+d x)}{a^2}} \left (-a^2+2 b^2-4 b (b+a \cos (c+d x))+2 (b+a \cos (c+d x))^2\right )}\right )}{48 d (b+a \cos (c+d x))^{5/2} (A+2 C+2 B \cos (c+d x)+A \cos (2 c+2 d x)) \sec ^{\frac {9}{2}}(c+d x)}+\frac {(a+b \sec (c+d x))^{5/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \left (\frac {1}{6} \sec ^2(c+d x) \left (6 b^2 B \sin (c+d x)+13 a b C \sin (c+d x)\right )+\frac {1}{12} \sec (c+d x) \left (24 A b^2 \sin (c+d x)+54 a b B \sin (c+d x)+33 a^2 C \sin (c+d x)+16 b^2 C \sin (c+d x)\right )+\frac {2}{3} b^2 C \sec ^2(c+d x) \tan (c+d x)\right )}{d (b+a \cos (c+d x))^2 (A+2 C+2 B \cos (c+d x)+A \cos (2 c+2 d x)) \sec ^{\frac {9}{2}}(c+d x)} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.38, size = 6194, normalized size = 13.67
method | result | size |
default | \(\text {Expression too large to display}\) | \(6194\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{5/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right )}{\sqrt {\frac {1}{\cos \left (c+d\,x\right )}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________